<?php /* Smarty version 2.6.18, created on 2009-05-06 14:38:17
         compiled from room/product_edit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_radios', 'room/product_edit.html', 81, false),array('modifier', 'default', 'room/product_edit.html', 81, false),array('modifier', 'urlencode', 'room/product_edit.html', 152, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>商务室 - <?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_tpl_vars['INC_PATH']; ?>
css/room.css" rel="stylesheet" type="text/css">
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/prototype.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/mixselect.js"></script>
<script>

/*
Submit Once form validation- 
?Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (I=0;I<theform.length;I++){
var tempobj=theform.elements[I]
if(tempobj.type.toLowerCase()=="productmod"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="83"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/element.top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr align="center" valign="top">
    <td width="180" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/left_bg.gif"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/menu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
    <td align="center"><table width="98%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img SRC="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/banr_pic.gif" WIDTH=570 HEIGHT=101 ALT=""></td>
        </tr>
      </table>
        <table width="95%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="45" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/title_bg.gif"><table height="30" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>&nbsp;</td>
                  <td class="font14b_org"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/product.gif"> 发布产品信息 </td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5" valign="top" class="bggray2"></td>
          </tr>
      </table>
	  <form name="productaddfrm" method="post" action="<?php echo $_ENV['PHP_SELF']; ?>
" enctype="multipart/form-data" onSubmit="$('save').disabled=true;">
	  <input type="hidden" name="action" value="product_edit">
	  <input type="hidden" name="id" value="<?php echo $_GET['id']; ?>
">
	  <input type="hidden" name="oldimgname" value="<?php echo $this->_tpl_vars['ProductInfo']['ProductPicture']; ?>
">
        <table width="95%"  border="0" cellspacing="0" cellpadding="0" title="发布产品信息">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="35"><span class="gray">&nbsp;（提示：带<font color="#FF6600"> * </font>号的为必填项）</span></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="100" class="bgblue"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_01.gif" width="12" height="12"></td>
                        <td align="right" valign="top" class="tdright"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_02.gif" width="12" height="12"></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="5">
                      <tr>
                        <td width="90" class="tdleft"><font color="#FF6600">*</font> 产品类型：</td>
                        <td class="tdright"><?php echo smarty_function_html_radios(array('name' => 'sort_id','options' => $this->_tpl_vars['ProductSorts'],'checked' => ((is_array($_tmp=@$this->_tpl_vars['ProductInfo']['ProductSortId'])) ? $this->_run_mod_handler('default', true, $_tmp, 2) : smarty_modifier_default($_tmp, 2)),'separator' => ' '), $this);?>
</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 产品名称：</td>
                        <td class="tdright"><input name="prod_name" type="text" id="prod_name" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['ProductInfo']['ProductName'])) ? $this->_run_mod_handler('default', true, $_tmp, @$_GET['keyword']) : smarty_modifier_default($_tmp, @$_GET['keyword'])); ?>
" size="25">
                        <font color="#666666">（2-30个中文字）</font></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 产品型号：</td>
                        <td class="tdright"><font color="#666666">
                          <input name="prod_sn" type="text" id="prod_sn" value="<?php echo $this->_tpl_vars['ProductInfo']['ProductSn']; ?>
" size="25">
                        （如：LV-3765）</font></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">　</font>产品规格：</td>
                        <td class="tdright"><font color="#666666">
                          <input name="scale" type="text" id="scale" value="<?php echo $this->_tpl_vars['ProductInfo']['ProductSpec']; ?>
" size="25">
                        </font></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">　</font>包装说明：</td>
                        <td class="tdright"><font color="#666666">
                          <input name="package" type="text" id="package" value="<?php echo $this->_tpl_vars['ProductInfo']['ProductPackingContent']; ?>
" size="25">
                        </font></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">　</font>价格说明：</td>
                        <td class="tdright"><font color="#666666">
                          <input name="price" type="text" id="price" value="<?php echo $this->_tpl_vars['ProductInfo']['ProductPrice']; ?>
" size="25">
                        </font>(不填或写"0"则自动表示"价格面议")</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">　</font>原 产 地：</td>
                        <td class="tdright"><font color="#666666">
                          <input name="fromwhere" type="text" id="fromwhere" value="<?php echo $this->_tpl_vars['ProductInfo']['ProductProduceArea']; ?>
" size="25">
                        </font></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 行业类别：</td>
                        <td class="tdright"><select name="aindustry" id="aindustry" USEDATA="dataSrc" SUBCLASS="1">

						</select><select name="bindustry" id="bindustry" USEDATA="dataSrc" SUBCLASS="2">

						</select>
						(如果不想变动,请不必选择)
						<br>
						当前行业类别  :  <?php $_from = $this->_tpl_vars['CurrentIndustry']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cui'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cui']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ci']):
        $this->_foreach['cui']['iteration']++;
?><?php echo $this->_tpl_vars['ci']['IndustryName']; ?>
&rarr;<?php endforeach; else: ?>空<?php endif; unset($_from); ?>
						</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 产品描述：</td>
                        <td class="tdright"><textarea name="content" cols="50" rows="8" wrap="VIRTUAL"><?php echo ((is_array($_tmp=@$this->_tpl_vars['ProductInfo']['ProductContent'])) ? $this->_run_mod_handler('default', true, $_tmp, "") : smarty_modifier_default($_tmp, "")); ?>
</textarea><br />
                            <font color="#FF3300">注：（10-500个中文字）详细说明中请勿包含公司名称、地址、联系方式等<br>
                        </font></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">　</font>所属系列：</td>
                        <td class="tdright"><font color="#666666">
                        <span class="zi">
                          <br>
                          <select name="product_type">
                            <option value="0">请选择类别</option>
							<?php $_from = $this->_tpl_vars['ProductTypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['typeselect'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['typeselect']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['types']):
        $this->_foreach['typeselect']['iteration']++;
?>
							<option value="<?php echo $this->_tpl_vars['types']['ID']; ?>
" <?php if ($this->_tpl_vars['ProductInfo']['ProductProducttypeId'] == $this->_tpl_vars['types']['ID']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['types']['Name']; ?>
</option>
							<?php endforeach; endif; unset($_from); ?>
                          </select>
                        </span>    <br>
                        （<span class="zi"><font color="#666666">可按照您创建的产品系列进行分类，方便您管理）</font></span></font></td>
                      </tr>
                      <tr>
                        <td valign="middle" class="tdleft"><font color="#FF6600">　</font>关键字：</td>
                        <td class="tdright"><?php $_from = $this->_tpl_vars['ProductInfo']['ProductKeywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?><a href="<?php echo $this->_tpl_vars['SiteUrl']; ?>
tag.php?keyword=<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['title'])) ? $this->_run_mod_handler('urlencode', true, $_tmp) : urlencode($_tmp)); ?>
" target="_blank" title="搜索含有该关键字的产品"><?php echo $this->_tpl_vars['item']['title']; ?>
</a>&nbsp;<?php endforeach; endif; unset($_from); ?></td>
                      </tr>
                      <tr>
                        <td valign="middle" class="tdleft"><font color="#FF6600">　</font>添加关键字：</td>
                        <td class="tdright"><font color="#666666">
                          <input name="keywords" type="text" id="keywords" value="<?php echo $_GET['keyword']; ?>
">
                        (请用","号或者空格隔开)</font></td>
                      </tr>
                      <tr>
                        <td valign="middle" class="tdleft">　产品图片：</td>
                        <td class="tdright"><br>
                            <input name="pic" type="file" size="35" id="uploadfile" onChange="preview()" />
                            <span class="gray"><br>
                              （图片大小不要超过200K ,格式gif,jpg, 图片宽度最大为400象数效果最佳！）</span></td>
                      </tr>
                      <tr>
                        <td valign="middle" class="tdleft">　</td>
                        <td class="tdright"><img id="uploadpic" src="<?php if ($this->_tpl_vars['ProductInfo']['ProductPicture'] != ""): ?><?php echo $this->_tpl_vars['SiteUrl']; ?>
media/attachment/<?php echo $this->_tpl_vars['ProductInfo']['ProductPicture']; ?>
<?php else: ?><?php echo $this->_tpl_vars['SiteUrl']; ?>
media/default/big.jpg<?php endif; ?>" alt="<?php echo ((is_array($_tmp=@$this->_tpl_vars['ProductInfo']['prod_name'])) ? $this->_run_mod_handler('default', true, $_tmp, "中文名无法预览") : smarty_modifier_default($_tmp, "中文名无法预览")); ?>
" width="400" height="300" border="0" /></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="100" class="tdleft"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_03.gif" width="12" height="12"></td>
                        <td align="right" valign="top" class="tdright"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_04.gif" width="12" height="12"></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td height="40" align="center"><br>
                <input name="save" type="submit" id="save" value=" 确认提交 ">
            </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
    </table>
	</form>
	</td>
  </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/foot.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</center>
</html>
<script language="javascript">
var linkage = new Linkage("dataSrc", "<?php echo $this->_tpl_vars['JS_PATH']; ?>
media/xml/industry_option.xml");
linkage.BLANK_SELECT = "请选择";
linkage.init();
</script>